import {Component, OnInit} from '@angular/core';
import {testURL} from '../../../public/service/http-service/URL';
import {HttpService} from '../../../public/service/http-service/http.service';

declare var $: any;

@Component({
  selector: 'app-a-2',
  templateUrl: './a-2.component.html',
  styleUrls: ['./a-2.component.css']
})
export class A2Component implements OnInit {

  constructor(private httpService: HttpService) {

  }

  ngOnInit() {
    this.my();
    // $('#mytext').load('../../../../assets/webim/index.html');
    // document.documentElement.clientHeight
  }
  my() {
    const params = {
      pageIndex: 1,
      pageSize: 10
    };
    this.httpService.http('get', testURL.list2, params)
      .then(
        res => {
          console.log(res);
        }
      );
  }

}
